package com.ruoyi.article.mapper;

import com.ruoyi.article.domain.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {

    Article checkArticleUnique(String name);

    int insertArticle(Article article);

    List<Article> selectArticleList(Article article);

    Article selectArticleById(Long articleId);

    public int deleteArticleById(Long articleId);


    public int deleteArticleByIds(Long[] articleIds);

    public int updateArticle(Article commodity);
}
